package com.suning.sawp.dto.commodity;

import java.io.Serializable;

/**
 * 码上省爆款，优选商品输出对象
 * 〈一句话功能简述〉<br> 
 * 〈功能详细描述〉
 *
 * @author 15050519
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class MssCommoditySelfInDto implements Serializable {

    /**
     */
    private static final long serialVersionUID = 5517465815126797956L;

    /**
     * 主键
     */
    private Long id;
    
    /**
     * 商品编码
     */
    private String commCode;
    
    /**
     * 商品名称
     */
    private String partName;
    
    /**
     * 商家编码
     */
    private String mertCode;
    
    /**
     * 活动开始时间
     */
    private String beginDate;
    
    /**
     * 活动结束时间
     */
    private String endDate;
    
    /**
     * 类型,爆款-10，优选-20
     */
    private String typeId;
    
    /**
     * 类型名称
     */
    private String typeName;
    
    /**
     * 品类编码<br/>
     * 空调-1001、冰洗-1002、黑电-1003、厨卫-1004、<br/>
     * 小家电-1005、3C-1006、超市-1007、母婴-1008、百货-1009
     */
    private String cateCode;
    
    /**
     * 品类名称
     */
    private String cateName;
    
    private String price = "";

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public String getMertCode() {
        return mertCode;
    }

    public void setMertCode(String mertCode) {
        this.mertCode = mertCode;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
        // 初始化类型名称
        if ("10".equals(typeId)) {
            typeName= "畅销";
        } else if ("20".equals(typeId)) {
            typeName= "优选";
        } else {
            typeName= "其他";
        }
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getCateCode() {
        return cateCode;
    }

    public void setCateCode(String cateCode) {
        this.cateCode = cateCode;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "MssCommoditySelfInDto [id=" + id + ", commCode=" + commCode + ", partName=" + partName + ", mertCode="
                + mertCode + ", beginDate=" + beginDate + ", endDate=" + endDate + ", typeId=" + typeId + ", typeName="
                + typeName + ", cateCode=" + cateCode + ", cateName=" + cateName + "]";
    }
    
}
